emacs.git
10 years agoMerge branch 'better-window-sizes'
justbur [Thu, 9 Jul 2015 16:27:15 +0000 (12:27 -0400)]
Merge branch 'better-window-sizes'

10 years agoremove mode-line
justbur [Thu, 9 Jul 2015 16:24:19 +0000 (12:24 -0400)]
remove mode-line

10 years agoMerge branch 'better-window-sizes' of https://github.com/bmag/emacs-which-key into...
justbur [Thu, 9 Jul 2015 16:22:44 +0000 (12:22 -0400)]
Merge branch 'better-window-sizes' of https://github.com/bmag/emacs-which-key into better-window-sizes

10 years agoChange side-window params to percentages
justbur [Thu, 9 Jul 2015 15:12:19 +0000 (11:12 -0400)]
Change side-window params to percentages

10 years agoUse fit-window-to-buffer again
Bar Magal [Thu, 9 Jul 2015 15:56:36 +0000 (18:56 +0300)]
Use fit-window-to-buffer again

10 years agoAllow percentages for side-window max sizes #19
Bar Magal [Thu, 9 Jul 2015 14:27:11 +0000 (17:27 +0300)]
Allow percentages for side-window max sizes #19

10 years agoAdd functions for adding to replacement alists
justbur [Thu, 9 Jul 2015 13:38:45 +0000 (09:38 -0400)]
Add functions for adding to replacement alists

10 years agoFix text vs. total window width handling #22
Bar Magal [Thu, 9 Jul 2015 13:22:27 +0000 (16:22 +0300)]
Fix text vs. total window width handling #22

10 years agoRemove mode-line and tweak max-height
justbur [Thu, 9 Jul 2015 12:22:56 +0000 (08:22 -0400)]
Remove mode-line and tweak max-height

max-height for side-window could still be more precise, but this seems
to work

10 years agoMake user setup functions interactive and autoload
justbur [Thu, 9 Jul 2015 11:55:48 +0000 (07:55 -0400)]
Make user setup functions interactive and autoload

10 years agoFix #22
justbur [Thu, 9 Jul 2015 11:44:36 +0000 (07:44 -0400)]
Fix #22

Check for keymap instead of not a symbol.

10 years agoRemove hidden-mode-line-mode
justbur [Thu, 9 Jul 2015 11:25:47 +0000 (07:25 -0400)]
Remove hidden-mode-line-mode

10 years agoAdd minibuffer picture
justbur [Thu, 9 Jul 2015 02:36:07 +0000 (22:36 -0400)]
Add minibuffer picture

10 years agoDelete which-key-minibuffer.PNG
Justin Burkett [Thu, 9 Jul 2015 02:28:25 +0000 (22:28 -0400)]
Delete which-key-minibuffer.PNG

10 years agoAdd bottom section and picture to readme
justbur [Thu, 9 Jul 2015 02:25:00 +0000 (22:25 -0400)]
Add bottom section and picture to readme

10 years agoAdd minibuffer picture
justbur [Thu, 9 Jul 2015 02:20:03 +0000 (22:20 -0400)]
Add minibuffer picture

10 years agoAdd config setup functions and more
justbur [Thu, 9 Jul 2015 02:18:02 +0000 (22:18 -0400)]
Add config setup functions and more

Fix a problem where the frame-height was not accouting for the
minibuffer. Also, set the buffer to hidden-mode-line-mode to hide the
mode-line for now (#16).

10 years agoUpdate readme
justbur [Thu, 9 Jul 2015 02:16:21 +0000 (22:16 -0400)]
Update readme

10 years agoPossible fix for #18
justbur [Thu, 9 Jul 2015 00:39:27 +0000 (20:39 -0400)]
Possible fix for #18

10 years agoFix #21
justbur [Wed, 8 Jul 2015 20:08:03 +0000 (16:08 -0400)]
Fix #21

10 years agoFix act-width in populate-buffer
justbur [Wed, 8 Jul 2015 19:35:53 +0000 (15:35 -0400)]
Fix act-width in populate-buffer

10 years agoRework key-based replacement
justbur [Wed, 8 Jul 2015 17:55:53 +0000 (13:55 -0400)]
Rework key-based replacement

Previous implementation didn't work for multiple major-mode bindings

10 years agoFix replace-match and rewrite propertize-key
justbur [Wed, 8 Jul 2015 17:32:27 +0000 (13:32 -0400)]
Fix replace-match and rewrite propertize-key

10 years agoBreak out key-based replacement function.
justbur [Wed, 8 Jul 2015 17:20:27 +0000 (13:20 -0400)]
Break out key-based replacement function.

Seems simpler to use `assoc-string` in this case.

10 years agoFixes #19
justbur [Wed, 8 Jul 2015 15:41:10 +0000 (11:41 -0400)]
Fixes #19

Kind of a hack, but seems a lot easier than trying to get an exact
calculation of the width

10 years agoRemove hide-popup call from update function
justbur [Wed, 8 Jul 2015 15:35:40 +0000 (11:35 -0400)]
Remove hide-popup call from update function

Doesn't seem to be needed anymore after adding hide-popup to the
pre-command-hook.

10 years agoFix bug in format-matches
justbur [Wed, 8 Jul 2015 14:43:50 +0000 (10:43 -0400)]
Fix bug in format-matches

10 years agoAdd option to specify major-mode in replacements
justbur [Wed, 8 Jul 2015 14:36:57 +0000 (10:36 -0400)]
Add option to specify major-mode in replacements

Note all replacements need to be proper lists instead of cons cells now
to add the option to check the third argument. If the third argument is
missing it defaults to replacing in all major modes

10 years agoRevert unintended change to act-height calc
justbur [Wed, 8 Jul 2015 12:52:28 +0000 (08:52 -0400)]
Revert unintended change to act-height calc

10 years agoFix #17 errors when not enough room is available.
justbur [Wed, 8 Jul 2015 12:29:16 +0000 (08:29 -0400)]
Fix #17 errors when not enough room is available.

Also gives more control over whether and where to show prefix keys. When
the buffer is vertical showing in first line seems to make more sense.

10 years agoAdd :group to faces
justbur [Wed, 8 Jul 2015 11:40:17 +0000 (07:40 -0400)]
Add :group to faces

10 years agoRequire cl-lib
justbur [Wed, 8 Jul 2015 11:37:41 +0000 (07:37 -0400)]
Require cl-lib

Addresses #15

10 years agoAdd key-based replacement list
justbur [Wed, 8 Jul 2015 00:12:01 +0000 (20:12 -0400)]
Add key-based replacement list

10 years agoAdd regexp to remove namespace (w minor cleanup)
justbur [Tue, 7 Jul 2015 23:39:38 +0000 (19:39 -0400)]
Add regexp to remove namespace (w minor cleanup)

10 years agoRemove column-width from max-dimensions
justbur [Tue, 7 Jul 2015 23:25:57 +0000 (19:25 -0400)]
Remove column-width from max-dimensions

It's not needed

10 years agoShow prefix in popup
justbur [Tue, 7 Jul 2015 20:19:45 +0000 (16:19 -0400)]
Show prefix in popup

10 years agoRemove commented out close timer stuff
justbur [Tue, 7 Jul 2015 19:21:57 +0000 (15:21 -0400)]
Remove commented out close timer stuff

Closes #10

10 years agoMake echo-keystrokes a variable and speed it up.
justbur [Tue, 7 Jul 2015 19:11:46 +0000 (15:11 -0400)]
Make echo-keystrokes a variable and speed it up.

10 years agoBe consistent in defining faces.
justbur [Tue, 7 Jul 2015 19:06:06 +0000 (15:06 -0400)]
Be consistent in defining faces.

10 years agoMake default delay less aggressive.
justbur [Tue, 7 Jul 2015 19:00:10 +0000 (15:00 -0400)]
Make default delay less aggressive.

Also avoids touching echo-keystrokes if it is already low.

10 years agoMaek special keys bold
justbur [Tue, 7 Jul 2015 17:27:08 +0000 (13:27 -0400)]
Maek special keys bold

10 years agoAdd DEL to special keys
justbur [Tue, 7 Jul 2015 17:24:39 +0000 (13:24 -0400)]
Add DEL to special keys

10 years agoAdd small indication of more pages
justbur [Tue, 7 Jul 2015 15:08:11 +0000 (11:08 -0400)]
Add small indication of more pages

10 years agoPull out faces and add special key face
justbur [Tue, 7 Jul 2015 14:58:13 +0000 (10:58 -0400)]
Pull out faces and add special key face

Special keys (SPC, TAB, RET and ESC) are now truncated to one character
and shown in inverse-video to distinguish them from S, T, R and E

10 years agoNeed cl for emacs < 25
justbur [Mon, 6 Jul 2015 19:50:42 +0000 (15:50 -0400)]
Need cl for emacs < 25

10 years agoFix compiler warnings
justbur [Mon, 6 Jul 2015 19:25:49 +0000 (15:25 -0400)]
Fix compiler warnings

10 years agoChange side-window default position to right
justbur [Mon, 6 Jul 2015 18:40:07 +0000 (14:40 -0400)]
Change side-window default position to right

10 years agoTry without close timer
justbur [Mon, 6 Jul 2015 18:37:27 +0000 (14:37 -0400)]
Try without close timer

10 years agoMerge pull request #13 from bmag/pre-command-hook
Justin Burkett [Mon, 6 Jul 2015 18:28:39 +0000 (14:28 -0400)]
Merge pull request #13 from bmag/pre-command-hook

Hide buffer right before command execution

10 years agoMerge branch 'frame-popup' of https://github.com/bmag/emacs-which-key into pr12
justbur [Mon, 6 Jul 2015 18:23:56 +0000 (14:23 -0400)]
Merge branch 'frame-popup' of https://github.com/bmag/emacs-which-key into pr12

10 years agoWork on docstrings
justbur [Mon, 6 Jul 2015 18:22:08 +0000 (14:22 -0400)]
Work on docstrings

10 years agoRedo replacement logic
justbur [Mon, 6 Jul 2015 17:53:10 +0000 (13:53 -0400)]
Redo replacement logic

10 years agoMake arrow separator into variable
justbur [Mon, 6 Jul 2015 17:40:49 +0000 (13:40 -0400)]
Make arrow separator into variable

10 years agoRefactor replacement alists
justbur [Mon, 6 Jul 2015 17:23:19 +0000 (13:23 -0400)]
Refactor replacement alists

10 years agoHide buffer right before command execution
Bar Magal [Mon, 6 Jul 2015 16:34:31 +0000 (19:34 +0300)]
Hide buffer right before command execution

Fixes #9, this is also what guide-key uses.

When quoting functions, using "#'" tells the compiler that you're
quoting a function, and allows it to catch void function errors.

10 years agoTry to fix focus problems with popup frame #7
Bar Magal [Mon, 6 Jul 2015 16:22:40 +0000 (19:22 +0300)]
Try to fix focus problems with popup frame #7

10 years agoAllow echo-keystrokes but make it quick
justbur [Mon, 6 Jul 2015 15:18:55 +0000 (11:18 -0400)]
Allow echo-keystrokes but make it quick

10 years agoAdd .gitignore
justbur [Mon, 6 Jul 2015 15:03:00 +0000 (11:03 -0400)]
Add .gitignore

10 years agoFix problem with echo-keystrokes and minibuffer
justbur [Mon, 6 Jul 2015 14:54:24 +0000 (10:54 -0400)]
Fix problem with echo-keystrokes and minibuffer

If the echo-keystrokes delay is too long, it clobbers which-key in the
minibuffer

10 years agoRemove popwin requirement; Add require cl
justbur [Mon, 6 Jul 2015 13:48:56 +0000 (09:48 -0400)]
Remove popwin requirement; Add require cl

10 years agoMerge branch 'master' of https://github.com/bmag/emacs-which-key into pr5
justbur [Mon, 6 Jul 2015 12:08:32 +0000 (08:08 -0400)]
Merge branch 'master' of https://github.com/bmag/emacs-which-key into pr5

10 years agoDelete old defvars and minor docstring cleanup
justbur [Mon, 6 Jul 2015 12:03:59 +0000 (08:03 -0400)]
Delete old defvars and minor docstring cleanup

10 years agoFix doc, new frame parameters
Bar Magal [Mon, 6 Jul 2015 11:51:31 +0000 (14:51 +0300)]
Fix doc, new frame parameters

10 years agoFrame popup support and some small fixes
Bar Magal [Mon, 6 Jul 2015 10:46:46 +0000 (13:46 +0300)]
Frame popup support and some small fixes

Summary of changes:
- add emacs 24.3 as a dependency, because
  `display-buffer-in-major-side-window` doesn't exist in older emacsen
- add option to show which-key buffer in a popup frame
  `(setq which-key-popup-type 'frame)`
- stop close timer when disabling which-key-mode
- don't hide which-key buffer before showing it. instead, show methods
  handle the case that the buffer is already shown
- `which-key/hide-popup` calls function depending on popup
  type (similar to `which-key/show-popup`)
- use `display-buffer-in-major-side-window` instead of
  `display-buffer-in-side-window`, for popup type side-window. ensures
  new side window is created properly even if other side windows already
  exist.
- erase previous contents of which-key buffer before inserting new
  contents, and adjust buffer display in window by moving point to
  the buffer's beginning

10 years agoRename config variables, simplifying interface
justbur [Mon, 6 Jul 2015 03:02:31 +0000 (23:02 -0400)]
Rename config variables, simplifying interface

The primary config variable is now which-key-popup-type, which
supports 'minibuffer and 'side-window. 'side-window has further
associated options, primarily which-key-side-window-location

10 years agoMerge bmag changes
justbur [Sun, 5 Jul 2015 23:24:20 +0000 (19:24 -0400)]
Merge bmag changes

See PR #1

10 years agoOrganize keys by pages
justbur [Sun, 5 Jul 2015 17:55:19 +0000 (13:55 -0400)]
Organize keys by pages

10 years agoUndo unintentional delete of end-of-file comment
Bar Magal [Sun, 5 Jul 2015 20:26:47 +0000 (23:26 +0300)]
Undo unintentional delete of end-of-file comment

10 years agoUndo unintentional delete of provide line
Bar Magal [Sun, 5 Jul 2015 20:24:31 +0000 (23:24 +0300)]
Undo unintentional delete of provide line

10 years agoRefactor before work on window display
Bar Magal [Sun, 5 Jul 2015 20:10:01 +0000 (23:10 +0300)]
Refactor before work on window display

Wanted to add support for using display-buffer or popwin, ran into some
bugs, had to make changes to the code so future work will be easier.
Details below:

- separate between code to display window and code to populate buffer
  contents
- add `which-key-horizontal-buffer-height` similar to
  `which-key-vertical-buffer-width`
- abstract handling of different display methods into
  `which-key/show-buffer` and `which-key/hide-buffer`, instead of mixed
  in other functions
- remove `which-key/make-display-method-aliases`
- support two display methods: `minibuffer` and `side-window`, will add
  popwin later
- create start/stop functions for which-key--close-timer
- a few other changes

10 years agoReorganize code a little
justbur [Sat, 4 Jul 2015 15:10:20 +0000 (11:10 -0400)]
Reorganize code a little

10 years agoFactor out display functions
justbur [Sat, 4 Jul 2015 15:06:07 +0000 (11:06 -0400)]
Factor out display functions

To add customization options later

10 years agoChange formatting of groups
justbur [Sat, 4 Jul 2015 03:29:07 +0000 (23:29 -0400)]
Change formatting of groups

10 years agoToggle timer on frame focus
justbur [Sat, 4 Jul 2015 03:01:17 +0000 (23:01 -0400)]
Toggle timer on frame focus

10 years agoFix index error for subseq
justbur [Sat, 4 Jul 2015 02:19:50 +0000 (22:19 -0400)]
Fix index error for subseq

10 years agoSwitch default to minibuffer
justbur [Sat, 4 Jul 2015 02:10:34 +0000 (22:10 -0400)]
Switch default to minibuffer

There are a lot of changes here.
  1. Reorganized and factored a bunch of code.
  2. Rewrote the logic to calculate line breaks (much cleaner).
  3. Switched to using the minibuffer by default, which seems more
  foolproof and saves line space (I'm sure there's something wrong with
  this).

10 years agoUpdate docstrings and fix packaging
justbur [Fri, 3 Jul 2015 19:36:55 +0000 (15:36 -0400)]
Update docstrings and fix packaging

10 years agoMove cursor code to setup
justbur [Fri, 3 Jul 2015 17:25:26 +0000 (13:25 -0400)]
Move cursor code to setup

10 years agoTry to hide cursor
justbur [Fri, 3 Jul 2015 17:07:07 +0000 (13:07 -0400)]
Try to hide cursor

10 years agoBetter picture
justbur [Fri, 3 Jul 2015 17:06:43 +0000 (13:06 -0400)]
Better picture

10 years agoGet the cursor out of the way
justbur [Fri, 3 Jul 2015 16:51:05 +0000 (12:51 -0400)]
Get the cursor out of the way

10 years agoAdd picture to readme
justbur [Fri, 3 Jul 2015 16:50:37 +0000 (12:50 -0400)]
Add picture to readme

10 years agoArrows are more fun
justbur [Fri, 3 Jul 2015 16:00:07 +0000 (12:00 -0400)]
Arrows are more fun

Also add padding between entries

10 years agoSwitch readme to org-mode
justbur [Fri, 3 Jul 2015 12:39:26 +0000 (08:39 -0400)]
Switch readme to org-mode

10 years agoSwitch back to popwin for now
justbur [Fri, 3 Jul 2015 12:32:40 +0000 (08:32 -0400)]
Switch back to popwin for now

10 years agoRemove unnecessary checks
justbur [Fri, 3 Jul 2015 12:12:10 +0000 (08:12 -0400)]
Remove unnecessary checks

10 years agoSave popwin functions as comments
justbur [Fri, 3 Jul 2015 12:09:27 +0000 (08:09 -0400)]
Save popwin functions as comments

10 years agoMerge branch 'display-buffer'
justbur [Fri, 3 Jul 2015 12:07:02 +0000 (08:07 -0400)]
Merge branch 'display-buffer'

10 years agoRemove commented funcs and messages
justbur [Fri, 3 Jul 2015 01:33:35 +0000 (21:33 -0400)]
Remove commented funcs and messages

10 years agoAdd option to select display-buffer function.
justbur [Fri, 3 Jul 2015 01:28:48 +0000 (21:28 -0400)]
Add option to select display-buffer function.

Only 2 are implemented at the moment.

10 years agoDeclare `which-key--close-timer'
justbur [Fri, 3 Jul 2015 00:05:01 +0000 (20:05 -0400)]
Declare `which-key--close-timer'

10 years agoFix close timer randomly kicking in
justbur [Thu, 2 Jul 2015 23:28:36 +0000 (19:28 -0400)]
Fix close timer randomly kicking in

when you take too long to decide

10 years agoFix text replacement alist
justbur [Thu, 2 Jul 2015 23:08:15 +0000 (19:08 -0400)]
Fix text replacement alist

Conflicts:
which-key.el

10 years agoFix text replacement alist
justbur [Thu, 2 Jul 2015 23:08:15 +0000 (19:08 -0400)]
Fix text replacement alist

10 years agoSwitch from popwin to display-buffer
justbur [Thu, 2 Jul 2015 22:14:04 +0000 (18:14 -0400)]
Switch from popwin to display-buffer

10 years agoStart working on MELPA requirements
justbur [Thu, 2 Jul 2015 15:41:59 +0000 (11:41 -0400)]
Start working on MELPA requirements

10 years agoAdd provide line
justbur [Thu, 2 Jul 2015 13:19:48 +0000 (09:19 -0400)]
Add provide line

10 years agoFix variable names
justbur [Thu, 2 Jul 2015 12:55:14 +0000 (08:55 -0400)]
Fix variable names

10 years agoMake internal variables stand out
justbur [Thu, 2 Jul 2015 12:36:54 +0000 (08:36 -0400)]
Make internal variables stand out

10 years agoReorganize main update function
justbur [Thu, 2 Jul 2015 12:27:29 +0000 (08:27 -0400)]
Reorganize main update function